# 元组
type1 = (1, '2', 3)
print(type1)

print(type1[0])  # 索引 访问---     1
print(type1[1:3])  # 切片 ---      ('2', 3)
print(type1[-1])  # 负数索引  ---   3
num1 = 100
num2 = 200
print('num1', num1)
print('num2', num2)
# 交换两个变量的值
num1, num2 = num2, num1
print('num1', num1)
print('num2', num2)
